home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swagg_m.zip
/
INTERRUP.SWG
/
0003_INTREXAM.PAS.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-05-28
|
683b
|
23 lines
Okay, well, For the most part, calling an interrupt from TP is fairly
simple. I'll use Interrupt 10h (service 0) as an example:
Procedure CallInt;
Var
Regs : Registers;
begin
Regs.AH := 0; { Specify service 0 }
Regs.AL := $13; { Mode number = 13 hex, MCGA 320x200x256 }
Intr($10,Regs); { Call the interrupt }
end;
This would shift the screen to the MCGA Graphics mode specified. Now,
it's easier to call this in BAsm (built-in Assembler):
Procedure CallInt; Assembler;
Asm
MOV AH,0 { Specify service 0 }
MOV AL,13h { Mode number = 13 hex, MCGA 320x200x256 }
inT 10h { Call the interrupt }
end;